package com.ddm.service;

import com.entity.Employee;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by he on 2025/3/4 13:33
 */

public interface IEmployeeService {
    // 根据员工ID查询
    Employee selectEmployeeById(Integer EmployeeId);

    // 根据员工名字查询
    Employee selectEmployeeByName(String EmployeeName);

    // 查询所有员工
    List<Employee> listAllEmployees();

    // 查询员工列表
    List<Employee> selectEmployeeList(Employee employee);

    // 新增员工
    int insertEmployee(Employee employee);

    // 修改员工信息
    int updateEmployee(Employee employee);

    // 根据员工ID删除
    int deleteEmployeeById(Integer EmployeeId);


    // 批量删除员工
    int deleteEmployeeByIds(Integer[] EmployeeIds);

    // 根据员工类型查询
    List<Employee> selectEmployeesByType(String employeeType);

    // 根据员工姓名查询
    List<Employee> selectEmployeesByName(String employeeName);

    // 根据员工Id查询员工列表
    List<Employee> selectEmployeesById(int employeeId);
}
